public abstract class Animal {
    public String name;
    public int age;



    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public abstract void food();
}

class Dog extends Animal{
    public Dog(String name , int age){
        super(name,age);
    }
    public void food(){
        System.out.println(name+"吃狗粮~");
    }
}
